<template>
 <div>
  <HelloWorld :data="data" name="我是邓紫棋"></HelloWorld>
 </div>
</template>
<script setup lang='ts'>
import { ref,reactive} from 'vue'
import HelloWorld from './components/HelloWorld.vue'
// vue3父组件给子组件传值
// 父组件通过v-bind绑定一个数据，然后子组件通过defineProps接受传过来的值
const data = reactive<number[]>([1,2,3])
</script>
<style scoped lang='scss'>
</style>